// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import FastClick from 'fastclick'
import VueRouter from 'vue-router'
import App from './App'
import Home from './components/HelloFromVux'
import Sender from './components/Sender'
import ExprssSelect from './components/ExprssSelect'
import Sites from './components/Sites'
// import Pay from './components/Pay'
import Order from './components/Order'
import Pay from './components/Pay'
import { ConfirmPlugin } from 'vux'
Vue.use(ConfirmPlugin)

Vue.use(VueRouter)

const routes = [{
        path: '/',
        component: Home
    },
    {
        path: '/Sender',
        component: Sender
    },
    {
        path: '/ExprssSelect',
        component: ExprssSelect
    },
    {
        path: '/Sites',
        component: Sites
    },
    {
        path: '/Order',
        component: Order
    },
    {
        path: '/Pay',
        component: Pay
    }
]

const router = new VueRouter({
    routes
})

FastClick.attach(document.body)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    router,
    render: h => h(App)
}).$mount('#app-box')